package indi.jp.project.business.pub.dao;

import indi.jp.project.business.pub.pojo.po.ProjectPO;
import indi.jp.project.business.pub.pojo.query.ProjectQuery;
import org.apache.ibatis.annotations.Mapper;

import java.sql.SQLException;
import java.util.List;

/**
 * 项目管理DAO
 *
 * @author jiangping
 * @date 2022/5/17
 */
@Mapper
public interface ProjectDAO {

    List<ProjectPO> queryList(ProjectQuery query) throws SQLException;

    int queryCount(ProjectQuery query) throws SQLException;

    void insert(ProjectPO projectPO) throws SQLException;

    void update(ProjectPO projectPO) throws SQLException;

    ProjectPO findById(String id) throws SQLException;

    void deleteById(String id) throws SQLException;
}
